package com.example.demo.service;

import com.example.demo.pojo.Register;

import com.example.demo.dao.CaseRegisterDao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("registerServiceImpl")
public class RegisterServiceImpl implements RegisterService {
    @Autowired
    CaseRegisterDao registerdao;

    @Override
    public List<Register> showall(String doctor_id){
        List<Register> allregister = registerdao.selectRegisterbyid(doctor_id);
        return allregister;
    }
    @Override
    public int updateRegisterbyid(int id){
        int i = registerdao.updateRegisterbyid(id);
        return i;
    }
}
